The Smart ComboBox Component > FSmartComboBox.setHistoryLength(len)

 

FSmartComboBox.setHistoryLength(len)

Availability

Macromedia Flash Player 6.

Usage

myCombo.setHistoryLength(len);

Parameters

len

The maximum number of items that can be stored in history.


Returns

Nothing.

Description

The method setHistoryLength sets the maximum number of items that can be stored in history. Once the maximum number of items have been added to the history, any attempts to add more data to the history will result in the removal of the earliest item added to the history.

Example

The following example shows how to use the method setHistoryLength to set the history length to 15 items.

myCombo.setHistoryLength(15);

See also

FSmartComboBox.getHistoryLength